<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content
 * after.  Calls sidebar-footer.php for bottom widgets.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?>
	</div><!-- #main -->
</div><!-- #wrapper -->

	<div id="footer" role="contentinfo" class="clearfix">
		<div id="footerInner">

<?php
	/* A sidebar in the footer? Yep. You can can customize
	 * your footer with four columns of widgets.
	 */
	get_sidebar( 'footer' );
?>
<div class="footer">
<?php $items = wp_get_nav_menu_items('Main', $args = array());
$j=0;
		for( $i=0; $i < count($items); $i++ ) {
			if ($items[$i]->title!='Home'){
			if ($items[$i]->menu_item_parent==0) {
				if ($j==2) {
				  echo '</div><div class="footer">';
				  $j=0; 
				}
				echo '<h3><a href="'.$items[$i]->url.'">'.$items[$i]->title.'</a></h3>';
				$j=$j+1;
			  } else {
				echo '<a href="'.$items[$i]->url.'">'.$items[$i]->title.'</a>';
			  } 
		} }
?>

		</div>
		<div class="footercontact"> 
        		<h3>Get In Touch</h3> 
        
        		<strong>Email:</strong> <a href="<?php echo esc_url( 'mailto://'.get_option('vps_general_email'), 'mailto', 'display'); ?>"><?php echo get_option('vps_general_email');?></a><br /> 
        
        		<strong>Phone:</strong> <?php echo get_option('vps_phone_number');?><br /> 
        		<strong>Fax:</strong> <?php echo get_option('vps_fax_number');?><br /><br /> 
            
        		<strong>Address:</strong> <?php echo get_option('vps_address_line1');?><br /> 
        		<?php $add2=get_option('vps_address_line2'); if ($add2!='') { echo get_option('vps_address_line2').', ';}?><?php echo get_option('vps_address_city');?>, <?php echo get_option('vps_address_prov');?>, <?php echo get_option('vps_address_code');?> <?php echo get_option('vps_address_cntry');?><br /><br /> 
        
        		Copyright &copy; <?php echo date('Y',current_time_fixed('timestamp'));?><br />Vancouver Pride Society.<br /> 
        		All rights reserved.
    
   		 </div> 
		</div><!-- #footerInner -->
	</div><!-- #footer -->


<?php
	/* Always have wp_footer() just before the closing </body>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?>
</body>
</html>
